package com.lvandroid.play.bean;

import androidx.core.content.pm.PermissionInfoCompat;

public class PlayItem {
    //资源路径，本地file，远程网络source
    public String url;

    //资源名
    public String name;
    //资源宽
    public int mWidth;
    //资源高
    public int mHeight;
    //资源长度
    public long mDuration;
    public String w;
    public String x;
    public String y;
    public String z;
    public String h;
    public String disabled;
    public String content;

    public String bgColor;
    public String bgNotHasColor;
    public String color;
    public String vAlign;
    public String type;

    public String geturl() {
        return url;
    }

    public void seturl(String url) {
        this.url = url;
    }

    public String getname() {
        return name;
    }

    public void setname(String name) {
        this.name = name;
    }

    public int getmWidth() {
        return mWidth;
    }

    public void setmWidth(int mWidth) {
        this.mWidth = mWidth;
    }

    public int getmHeight() {
        return mHeight;
    }

    public void setmHeight(int mHeight) {
        this.mHeight = mHeight;
    }

    public long getmDuration() {
        return mDuration;
    }

    public void setmDuration(long mDuration) {
        this.mDuration = mDuration;
    }

    public String getW() {
        return w;
    }

    public void setW(String w) {
        this.w = w;
    }

    public String getX() {
        return x;
    }

    public void setX(String x) {
        this.x = x;
    }

    public String getY() {
        return y;
    }

    public void setY(String y) {
        this.y = y;
    }

    public String getZ() {
        return z;
    }

    public void setZ(String z) {
        this.z = z;
    }

    public String getH() {
        return h;
    }

    public void setH(String h) {
        this.h = h;
    }

    public String getDisabled() {
        return disabled;
    }

    public void setDisabled(String disabled) {
        this.disabled = disabled;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getBgColor() {
        return bgColor;
    }

    public void setBgColor(String bgColor) {
        this.bgColor = bgColor;
    }

    public String getBgNotHasColor() {
        return bgNotHasColor;
    }

    public void setBgNotHasColor(String bgNotHasColor) {
        this.bgNotHasColor = bgNotHasColor;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getvAlign() {
        return vAlign;
    }

    public void setvAlign(String vAlign) {
        this.vAlign = vAlign;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public PlayItem() {}

    public PlayItem(String source) {
        url = source;
    }

    public String getSource() {
        return url;
    }

    public void setSource(String url) {
        this.url = url;
    }

    public String getSourceName() {
        return name;
    }

    public void setSourceName(String name) {
        this.name = name;
    }

    public int getWidth() {
        return mWidth;
    }

    public void setWidth(int mWidth) {
        this.mWidth = mWidth;
    }

    public int getHeight() {
        return mHeight;
    }

    public void setHeight(int height) {
        mHeight = height;
    }

    public long getDuration() {
        return mDuration;
    }

    public void setDuration(long mDuration) {
        this.mDuration = mDuration;
    }

    public void save() {

    }

    @Override
    public String toString() {
        return "PlayItem{" +
                "url='" + url + '\'' +
                ", name='" + name + '\'' +
                ", w='" + w + '\'' +
                ", x='" + x + '\'' +
                ", y='" + y + '\'' +
                ", z='" + z + '\'' +
                ", h='" + h + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
